package com.oristand.printer.address.model;

import javafx.beans.property.IntegerProperty;
import javafx.beans.property.StringProperty;

/**
 * @author chenkailiang
 * @date 2020/9/2
 */
public class PrintRecord {

    /**
     * 打印日期
     */
    private final StringProperty printDate;
    /**
     * 文件名
     */
    private final StringProperty fileName;
    /**
     * 操作
     */
    private final StringProperty operation;
    /**
     * 打印结果 success fail
     */
    private final StringProperty printResult;
    /**
     * 打印的label数量
     */
    private final IntegerProperty printLabelCount;


    public PrintRecord(StringProperty printDate, StringProperty fileName, StringProperty operation, StringProperty printResult, IntegerProperty printLabelCount) {
        this.printDate = printDate;
        this.fileName = fileName;
        this.operation = operation;
        this.printResult = printResult;
        this.printLabelCount = printLabelCount;
    }


    public String getPrintDate() {
        return printDate.get();
    }

    public StringProperty printDateProperty() {
        return printDate;
    }

    public void setPrintDate(String printDate) {
        this.printDate.set(printDate);
    }

    public String getFileName() {
        return fileName.get();
    }

    public StringProperty fileNameProperty() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName.set(fileName);
    }

    public String getOperation() {
        return operation.get();
    }

    public StringProperty operationProperty() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation.set(operation);
    }

    public String getPrintResult() {
        return printResult.get();
    }

    public StringProperty printResultProperty() {
        return printResult;
    }

    public void setPrintResult(String printResult) {
        this.printResult.set(printResult);
    }

    public int getPrintLabelCount() {
        return printLabelCount.get();
    }

    public IntegerProperty printLabelCountProperty() {
        return printLabelCount;
    }

    public void setPrintLabelCount(int printLabelCount) {
        this.printLabelCount.set(printLabelCount);
    }
}
